home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / base_shot_explosion.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.1 KB  |  236 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_BASESHOT_EXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
  9. desc.isAnimateTexture = false
  10. desc.RenderType = ENRENDERTYPE_GEOMETRY
  11.  
  12. Emitter = desc.PS.PSDescription
  13. Emitter.ParticleTypesNumber = 2
  14. Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
  15. Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
  16. Emitter.EmitterLifeTime = 1
  17.  
  18. PT = Emitter.ParticleTypesParams[1]
  19. PT.IsEmitterLocked = false
  20. PT.DrawOrder = 2
  21. PT.Material = ENMAT_PARTICLE_LIGHT
  22.  
  23.  
  24. PT.TextureName = "dot_alien_effect_explosion.dds"
  25.  
  26.  
  27.  
  28. PT.ParticlesPerSecond = 15.0;
  29. PT.InitialNumberOfParticles = 10.0;
  30. PT.BaseLifeTime = 0.8;
  31. PT.BaseLifeTimeVariance = 0.0;
  32. PT.BaseSpeed = 0.0;
  33. PT.BaseSpeedVariance = 0.0;
  34. PT.BaseAngle = 1.65;
  35. PT.BaseAngleVariance = 5.0;
  36. PT.BaseAngleSpeed = 0.0;
  37. PT.BaseAngleSpeedVariance = 0.0;
  38. PT.BaseAngleSpeedDirection = 0;
  39. PT.BaseDirection = D3DXVECTOR3:new(0.0,1.0,0.0);
  40. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  41. PT.BasePosition = D3DXVECTOR3:new(0,0,0);
  42. PT.BasePositionVariance = D3DXVECTOR3:new(5.0,5.0,5.0);
  43. PT.BaseSize = 2.0;
  44. PT.BaseSizeVariance = 2.0;
  45.  
  46. -- color over time
  47. PT.ColorOverTimeR[1].TimePercent = 0.0;
  48. PT.ColorOverTimeR[1].Value = 0.5;
  49. PT.ColorOverTimeG[1].TimePercent = 0.0;
  50. PT.ColorOverTimeG[1].Value = 0.5;
  51. PT.ColorOverTimeB[1].TimePercent = 0.0;
  52. PT.ColorOverTimeB[1].Value = 0.5;
  53.  
  54. PT.ColorOverTimeR[2].TimePercent = 1.0;
  55. PT.ColorOverTimeR[2].Value = 1.0;
  56. PT.ColorOverTimeG[2].TimePercent = 1.0;
  57. PT.ColorOverTimeG[2].Value = 1.0;
  58. PT.ColorOverTimeB[2].TimePercent = 1.0;
  59. PT.ColorOverTimeB[2].Value = 1.0;
  60.  
  61. -- transparency over time
  62. PT.TransparencyOverTime[1].TimePercent = 0.0;
  63. PT.TransparencyOverTime[1].Value = 1.0;
  64.  
  65. PT.TransparencyOverTime[2].TimePercent = 0.02;
  66. PT.TransparencyOverTime[2].Value = 1.0;
  67.  
  68. PT.TransparencyOverTime[3].TimePercent = 0.4;
  69. PT.TransparencyOverTime[3].Value = 1.0;
  70.  
  71. PT.TransparencyOverTime[4].TimePercent = 1.0;
  72. PT.TransparencyOverTime[4].Value = 0.0;
  73.  
  74.  
  75. -- size over time
  76. PT.SizeOverTime[1].TimePercent = 0.0;
  77. PT.SizeOverTime[1].Value = 0.0;
  78.  
  79. PT.SizeOverTime[3].TimePercent = 1.0;
  80. PT.SizeOverTime[3].Value = 10.0;
  81.  
  82.  
  83. -- Speed over time
  84. PT.SpeedOverTime[1].TimePercent = 0.0;
  85. PT.SpeedOverTime[1].Value = 10.0;
  86.  
  87. PT.SpeedOverTime[2].TimePercent = 0.5;
  88. PT.SpeedOverTime[2].Value = 0.0;
  89.  
  90. PT.SpeedOverTime[3].TimePercent = 1.0;
  91. PT.SpeedOverTime[3].Value = 0.0;
  92.  
  93. -- Tangent Speed over time
  94. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  95. PT.TangentSpeedOverTime[1].Value = 0.0;
  96.  
  97. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  98. PT.TangentSpeedOverTime[2].Value = 0.0;
  99.  
  100.  
  101. -- GravityAcceleration over time
  102. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  103. PT.GravityAccelerationOverTime[1].Value = 0.0;
  104.  
  105. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  106. PT.GravityAccelerationOverTime[2].Value = 0.0;
  107.  
  108. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  109. PT.GravityAccelerationOverTime[3].Value = 0.0;
  110.  
  111. -- AngleSpeed over time
  112. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  113. PT.AngleSpeedOverTime[1].Value = 0.0;
  114.  
  115. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  116. PT.AngleSpeedOverTime[2].Value = 0.0;
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. PT = Emitter.ParticleTypesParams[2]
  131. PT.IsEmitterLocked = false
  132. PT.DrawOrder = 1
  133. PT.Material = ENMAT_SIMPLEPARTICLE
  134.  
  135.  
  136. --PT.TextureName = "dot_alien_effect_explosion.dds"
  137. PT.TextureName = "environment_effect_cloud4.dds"
  138.  
  139.  
  140.  
  141. PT.ParticlesPerSecond = 15.0;
  142. PT.InitialNumberOfParticles = 5.0;
  143. PT.BaseLifeTime = 1.8;
  144. PT.BaseLifeTimeVariance = 0.0;
  145. PT.BaseSpeed = 0.0;
  146. PT.BaseSpeedVariance = 0.0;
  147. PT.BaseAngle = 1.65;
  148. PT.BaseAngleVariance = 5.0;
  149. PT.BaseAngleSpeed = 1.0;
  150. PT.BaseAngleSpeedVariance = 2.0;
  151. PT.BaseAngleSpeedDirection = 0;
  152. PT.BaseDirection = D3DXVECTOR3:new(0.0,1.0,0.0);
  153. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  154. PT.BasePosition = D3DXVECTOR3:new(0,0,0);
  155. PT.BasePositionVariance = D3DXVECTOR3:new(10.0,0.0,10.0);
  156. PT.BaseSize = 4.0;
  157. PT.BaseSizeVariance = 2.0;
  158.  
  159. -- color over time
  160. PT.ColorOverTimeR[1].TimePercent = 0.0;
  161. PT.ColorOverTimeR[1].Value = 0.5;
  162. PT.ColorOverTimeG[1].TimePercent = 0.0;
  163. PT.ColorOverTimeG[1].Value = 0.5;
  164. PT.ColorOverTimeB[1].TimePercent = 0.0;
  165. PT.ColorOverTimeB[1].Value = 0.5;
  166.  
  167. PT.ColorOverTimeR[2].TimePercent = 1.0;
  168. PT.ColorOverTimeR[2].Value = 0.5;
  169. PT.ColorOverTimeG[2].TimePercent = 1.0;
  170. PT.ColorOverTimeG[2].Value = 0.5;
  171. PT.ColorOverTimeB[2].TimePercent = 1.0;
  172. PT.ColorOverTimeB[2].Value = 0.5;
  173.  
  174. -- transparency over time
  175. PT.TransparencyOverTime[1].TimePercent = 0.0;
  176. PT.TransparencyOverTime[1].Value = 0.0;
  177.  
  178. PT.TransparencyOverTime[2].TimePercent = 0.3;
  179. PT.TransparencyOverTime[2].Value = 0.3;
  180.  
  181. PT.TransparencyOverTime[3].TimePercent = 0.7;
  182. PT.TransparencyOverTime[3].Value = 0.3;
  183.  
  184. PT.TransparencyOverTime[4].TimePercent = 1.0;
  185. PT.TransparencyOverTime[4].Value = 0.0;
  186.  
  187.  
  188. -- size over time
  189. PT.SizeOverTime[1].TimePercent = 0.0;
  190. PT.SizeOverTime[1].Value = 1.0;
  191.  
  192. PT.SizeOverTime[3].TimePercent = 1.0;
  193. PT.SizeOverTime[3].Value = 2.5;
  194.  
  195.  
  196. -- Speed over time
  197. PT.SpeedOverTime[1].TimePercent = 0.0;
  198. PT.SpeedOverTime[1].Value = 10.0;
  199.  
  200. PT.SpeedOverTime[2].TimePercent = 0.5;
  201. PT.SpeedOverTime[2].Value = 0.0;
  202.  
  203. PT.SpeedOverTime[3].TimePercent = 1.0;
  204. PT.SpeedOverTime[3].Value = 0.0;
  205.  
  206. -- Tangent Speed over time
  207. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  208. PT.TangentSpeedOverTime[1].Value = 0.0;
  209.  
  210. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  211. PT.TangentSpeedOverTime[2].Value = 0.0;
  212.  
  213.  
  214. -- GravityAcceleration over time
  215. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  216. PT.GravityAccelerationOverTime[1].Value = 0.0;
  217.  
  218. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  219. PT.GravityAccelerationOverTime[2].Value = 0.0;
  220.  
  221. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  222. PT.GravityAccelerationOverTime[3].Value = 0.0;
  223.  
  224. -- AngleSpeed over time
  225. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  226. PT.AngleSpeedOverTime[1].Value = 0.0;
  227.  
  228. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  229. PT.AngleSpeedOverTime[2].Value = 0.0;
  230.  
  231.  
  232.  
  233. --
  234. -- end particle system description
  235. --
  236.